﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RuleCode.Table;

namespace map.taobao
{
    public partial class test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            cbuser user = cbuser.Find("1=1");
            for (int i = 0; i < user.Count; i++)
            {
                cbusergroup usergroup = cbusergroup.Find("1=2");
                usergroup.New();
                usergroup.cbusergroupid.Value = usergroup.GetRecID().ToString ();
                usergroup.cbuserid.Value = user.cbuserid.Value;
                usergroup.cbname.Value = "陌生人";
                usergroup.Insert();
                user.Next();
            }
        }
    }
}
